HTMLify
style.css
Views: 15 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | img { --s: 250px; /* the size of the image */ --b: 8px; /* the border thickness*/ --g: 14px; /* the gap */ --c: #4ECDC4; /* the color */ width: var(--s); aspect-ratio: 1; outline: calc(var(--s)/2) solid #0009; outline-offset: calc(var(--s)/-2); cursor: pointer; transition: 0.3s; } img:hover { outline: var(--b) solid var(--c); outline-offset: var(--g); } img + img { border-radius: 50%; } body { margin: 0; min-height: 100vh; display: grid; grid-auto-flow: column; gap: 50px; place-content: center; place-items: center; background: #C8C8A9; } |